package com.industrial.premu.mapper;

import com.industrial.system.api.domain.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户表 数据层
 * 
 * @author ttql
 */
public interface SysUserMapper
{
    void batchInsertUser(@Param("list") List<SysUser> users);

    void batchUpdateUser(@Param("list") List<SysUser> users);

    List<SysUser> selectUserByUserNameArgs(@Param("list") List<String> uscc);

    void deleteUserByUserName(@Param("userName") List<String> collect);

    void updateUserPassword(SysUser sysUser);

    void updateNickNameBuUserName(SysUser sysUser);

    /**
     * 通过用户ID查询用户
     *
     * @param userId 用户ID
     * @return 用户对象信息
     */
    public SysUser selectUserById(String userId);
}
